<?php
    $announcement_id = $_GET["announceid"];
    //更新点击数
	$db -> query("update nettteach_announcement set hits = hits + 1 where id = ".$announcement_id);
	$sql = "select * from nettteach_announcement where id = ".$announcement_id;
	$result = $db -> query($sql);
	$row = $db -> fetch_array($result);
?>


<div id="sidebar_center" style="width: 735px;">
			<div id="news">
				<dl>
					<dt>
						<a class="news_nav article_golink" href="">通知公告</a>
					</dt>
				</dl>
				<ul>
                           <div class="announcement_title"><strong><?php echo ($row['title']);?></strong></div>
						<div class="announcement_postinfo">
							<?php echo ($row['editor_name']);?>发布于<?php echo date('Y-m-d',$row['datetime']);?>&nbsp;&nbsp;&nbsp;&nbsp;已有<?php echo ($row['hits']);?>人查看该公告
						</div>
						<div class="announcement_content">
							<?php echo ($row['content']);?>
						</div>
                           <div class="announcement_bottom">
							<a href="javascript:void(0)" onclick="history.back();return false;"><button >返回</button></a>
						</div>
                </ul>
            </div>
                </div>
